import Layout from '@/layouts/index.vue'
export const staticRouter = [

  {
    path: '',
    component: Layout,
    redirect: '/index',
    children: [
      {
        path: '/index',
        component: () => import('@/views/index/Index.vue'),
        name: 'Index',
        meta: { title: '首页', icon: 'dashboard', affix: true }
      },
      {
        path: '/songsheet',
        component: () => import('@/views/songsheet/Index.vue'),
        name: 'songsheet',
        meta: { title: '歌单', icon: 'dashboard', affix: true }
      },
      {
        path: '/video',
        component: () => import('@/views/video/Index.vue'),
        name: 'video',
        meta: { title: '视频', icon: 'dashboard', affix: true }
      },
      {
        path: '/songbook',
        component: () => import('@/views/songbook/Index.vue'),
        name: 'songbook',
        meta: { title: '曲库', icon: 'dashboard', affix: true }
      },
      {
        path: '/songbook/list',
        component: () => import('@/views/songbook/List.vue'),
        name: 'songbook_list',
        meta: { title: '曲库列表', icon: 'dashboard', affix: true }
      },
      {
        path: '/songbook/en',
        component: () => import('@/views/songbook/En.vue'),
        name: 'songbook_en',
        meta: { title: '歌单英文', icon: 'dashboard', affix: true }
      },
      {
        path: '/billboard',
        component: () => import('@/views/billboard/Index.vue'),
        name: 'billboard',
        meta: { title: '榜单曲', icon: 'dashboard', affix: true }
      },
      {
        path: '/billboard/list',
        component: () => import('@/views/billboard/List.vue'),
        name: 'billboard_list',
        meta: { title: '榜单曲列表', icon: 'dashboard', affix: true }
      },
      {
        path: '/goods',
        component: () => import('@/views/goods/Index.vue'),
        name: 'goods',
        meta: { title: '商品', icon: 'dashboard', affix: true }
      },
      {
        path: '/favorite',
        component: () => import('@/views/favorite/Index.vue'),
        name: 'favorite',
        meta: { title: '我的收藏', icon: 'dashboard', affix: true }
      },
      {
        path: '/download',
        component: () => import('@/views/download/Index.vue'),
        name: 'download',
        meta: { title: '下载', icon: 'download', affix: true }
      },
      {
        path: '/near',
        component: () => import('@/views/near/Index.vue'),
        name: 'near',
        meta: { title: '下载', icon: 'near', affix: true }
      },
      {
        path: '/shoppingcart',
        component: () => import('@/views/shoppingcart/Index.vue'),
        name: 'shoppingcart',
        meta: { title: '购物车', icon: 'dashboard', affix: true }
      },
      {
        path: '/mysongbook',
        component: () => import('@/views/mysongbook/Index.vue'),
        name: 'mysongbook',
        meta: { title: '我的歌单', icon: 'dashboard', affix: true }
      },
      {
        path: '/mysongbook/list',
        component: () => import('@/views/mysongbook/List.vue'),
        name: 'mysongbook_list',
        meta: { title: '我的歌单明细', icon: 'dashboard', affix: true }
      },
      {
        path: '/myfavorite',
        component: () => import('@/views/myfavorite/Index.vue'),
        name: 'myfavorite',
        meta: { title: '我收藏的歌单', icon: 'dashboard', affix: true }
      },
      {
        path: '/myfavorite/list',
        component: () => import('@/views/myfavorite/List.vue'),
        name: 'myfavorite_list',
        meta: { title: '我收藏的歌单明细', icon: 'dashboard', affix: true }
      }
    ]
    // path: "/",
    // name:"mainlayout",
    // component: () => import("@/layouts/index.vue"),
    // // redirect: "/index",
    // children:{
    //   path:"",
    //   name:"index",
    //   component: () => import("@/views/Find/recommend/index.vue"),
    //   meta: {
    //     belong: 0,
    //     isHome: true,
    //   },
    // }
  },
  // {
  //   path: "/home-layout",
  //   name: "home-layout",
  //   component: () => import("@/layouts/index.vue"),
  //   redirect: "/recommend",
  //   children: [
  //     // 发现
  //     {
  //       path: "/recommend",
  //       name: "recommend",
  //       component: () => import("@/views/Find/recommend/index.vue"),
  //       meta: {
  //         belong: 0,
  //         isHome: true,
  //       },
  //     },
  //     {
  //       path: "/play_list",
  //       name: "playlist",
  //       component: () => import("@/views/Find/play_list/index.vue"),
  //       meta: {
  //         belong: 0,
  //       },
  //     },
  //     {
  //       path: "/album",
  //       name: "album",
  //       component: () => import("@/views/Find/album/index.vue"),
  //       meta: {
  //         belong: 0,
  //       },
  //     },
  //     {
  //       path: "/charts",
  //       name: "charts",
  //       component: () => import("@/views/Find/charts/index.vue"),
  //       meta: {
  //         belong: 0,
  //       },
  //     },
  //     {
  //       path: "/video",
  //       name: "video",
  //       component: () => import("@/views/Find/video/index.vue"),
  //       meta: {
  //         belong: 0,
  //       },
  //     },
  //     {
  //       path: "/singer",
  //       name: "singer",
  //       component: () => import("@/views/Find/singer/index.vue"),
  //       meta: {
  //         belong: 0,
  //       },
  //     },
  //     {
  //       path: "/singer_info",
  //       name: "singerInfo",
  //       component: () => import("@/views/Find/singer/info/index.vue"),
  //       meta: {
  //         belong: 0,
  //       },
  //     },
  //     {
  //       path: "/music",
  //       name: "music",
  //       component: () => import("@/views/Detail/music/index.vue"),
  //       meta: {
  //         belong: 0,
  //       },
  //     },
  //     {
  //       path: "/user",
  //       name: "user",
  //       component: () => import("@/views/Detail/user/index.vue"),
  //       meta: {
  //         belong: 0,
  //       },
  //     },
  //     // 我的
  //     {
  //       path: "/mine",
  //       name: "mine",
  //       component: () => import("@/views/Mine/index.vue"),
  //       meta: {
  //         belong: 1,
  //       },
  //     },
  //     {
  //       path: "/follow",
  //       name: "follow",
  //       component: () => import("@/views/Follow/index.vue"),
  //       meta: {
  //         belong: 1,
  //       },
  //     },
  //     // 商城
  //     {
  //       path: "/shop",
  //       name: "shop",
  //       component: () => import("@/views/Shop/index.vue"),
  //       meta: {
  //         belong: 2,
  //       },
  //     },
  //     {
  //       path: "/good",
  //       name: "good",
  //       component: () => import("@/views/Detail/good/index.vue"),
  //       meta: {
  //         belong: 2,
  //       },
  //     },
  //     {
  //       path: "/order",
  //       name: "order",
  //       component: () => import("@/views/Shop/order/index.vue"),
  //       meta: {
  //         belong: 2,
  //       },
  //     },
  //     {
  //       path: "/order_detail",
  //       name: "order_detail",
  //       component: () => import("@/views/Detail/order/index.vue"),
  //       meta: {
  //         belong: 2,
  //       },
  //     },
  //     {
  //       path: "/user_apply",
  //       name: "user_apply",
  //       component: () => import("@/views/User/apply/index.vue"),
  //       meta: {
  //         belong: 3,
  //       },
  //     },
  //     {
  //       path: "/user_record",
  //       name: "user_record",
  //       component: () => import("@/views/User/record/index.vue"),
  //       meta: {
  //         belong: 3,
  //       },
  //     },
  //   ],
  // },
  // // 播放器
  // {
  //   path: "/play_music",
  //   name: "play_music",
  //   component: () => import("@/views/Play/music/index.vue"),
  // },
  // {
  //   path: "/play_video",
  //   name: "play_video",
  //   component: () => import("@/views/Play/video/index.vue"),
  // },
];

export const errorRouter = [
  {
    path: "/500",
    name: "500",
    component: () => import("@/views/Error/500.vue"),
  },
  {
    path: "/:pathMatch(.*)*",
    name: "404",
    component: () => import("@/views/Error/404.vue"),
  },
];
